package com.fowo.api.model.inventory.flows;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.format.DateTimeFormat;
import com.alibaba.excel.annotation.write.style.ContentStyle;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import java.util.List;
import javax.validation.constraints.*;
import lombok.Getter;
import lombok.Setter;

/** 库存流水 导入导出辅助模型 */
@Getter
@Setter
public class InventoryFlowsExcelPo {

  @DateTimeFormat("yyyy年MM月dd日HH:mm:ss")
  @ExcelProperty(value = "操作时间")
  private java.util.Date operateTime;

  @Size(max = 50, message = "类型长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "类型")
  private String documentType;

  @Size(max = 50, message = "单据号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "单据号")
  private String countnum;

  @Size(max = 50, message = "关联单据号长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "关联单据号")
  private String formNum;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "品名")
  private String itemIdName;

  @ExcelIgnore
  @ExcelProperty(value = "品名")
  private Long itemId;

  @Size(max = 50, message = "SKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "SKU")
  private String sku;

  @Size(max = 50, message = "店铺长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "店铺")
  private String shopIdShopName;

  @ExcelIgnore
  @ExcelProperty(value = "店铺")
  private Long shopId;

  @Size(max = 50, message = "FNSKU长度不能超过20")
  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "FNSKU")
  private String fnSku;

  @ContentStyle(
    horizontalAlignment = HorizontalAlignmentEnum.LEFT,
    dataFormat = 49
  )
  @ExcelProperty(value = "仓库")
  private String stockIdName;

  @ExcelIgnore
  @ExcelProperty(value = "仓库")
  private List<Long> stockId;

  @ExcelProperty(value = "可用量")
  private Long stockQty;

  @ExcelProperty(value = "次品量")
  private Long defectQty;

  @ExcelProperty(value = "待检待上架量")
  private java.math.BigDecimal inspectedQty;

  @ExcelProperty(value = "可用锁定量")
  private java.math.BigDecimal lockQty;

  @ExcelProperty(value = "次品锁定量")
  private java.math.BigDecimal rejectLockQty;

  @ExcelProperty(value = "可用在途量")
  private java.math.BigDecimal wayQty;

  @ExcelProperty(value = "次品在途量")
  private java.math.BigDecimal rejectWayQty;

  @ExcelProperty(value = "采购单价")
  private java.math.BigDecimal purchasePrice;

  @ExcelProperty(value = "单位费用")
  private java.math.BigDecimal unitCosts;

  @ExcelProperty(value = "单位头程")
  private java.math.BigDecimal unitHeadStroke;

  @ExcelProperty(value = "单位库存成本")
  private java.math.BigDecimal unitInventoryCost;

  @ExcelProperty(value = "货值")
  private java.math.BigDecimal goodsValue;

  @ExcelProperty(value = "费用")
  private java.math.BigDecimal expenses;

  @ExcelProperty(value = "头程")
  private java.math.BigDecimal headStroke;

  @ExcelProperty(value = "库存成本")
  private java.math.BigDecimal inventoryCost;

  @ExcelProperty(value = "操作人")
  private Long operator;
}
